package com.zxl.manager.service.impl;

import com.zxl.manager.dao.CommDao;
import com.zxl.manager.entity.Comm;
import com.zxl.manager.service.CommService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by jimmy on 2017/7/16.
 */
@Service
public class CommServiceImpl implements CommService {

    @Autowired
    private CommDao commDao;

    @Override
    public List<Comm> getAllConn(Integer limit,Integer offset) {
        return commDao.getAllConn(limit,offset);
    }

    public int getCommCnt(){
        return commDao.getCommCnt();
    }

    public List<Map<String,String>> getLevels(){
        return commDao.getLevels();
    }

    public int updComm(String level1,String level2){
        return commDao.updComm(level1,level2);
    }
}
